package com.jintian.smart.kernel.message.config;

import com.jintian.smart.kernel.autoconfigure.beetl.EnableBeetlMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.JavaMailSenderImpl;

@Configuration
@EnableBeetlMapper(basePackages = {"com.jintian.smart.kernel.message.mapper"}, sqlManager = "sqlManager", mapperSuffix = "Mapper")
public class MessageConfig {
    @Bean
    public JavaMailSender mailSender() {
        JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
        return mailSender;
    }
}
